package com.lmabbe.tenant.objects.vo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 模块资源表VO
 *
 * @author lmabbe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "模块资源表")
public class ModuleResourceTreeVO extends ModuleResourceVO {
    /**
     * 下级节点
     *
     * @date 2022/1/4 12:03 PM
     * @author liming
     */
    private List<ModuleResourceTreeVO> children;

    @Override
    public Boolean getHasChild() {
        return children != null && children.size() != 0;
    }
}